Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Constants and Data Types
Security Level Indicators


Applet Security Indicators

When you set up an applet security data structure, you must use the JMNetworkSecurityOptions type to specify the security level for the applet when accessing a network.

enum JMNetworkSecurityOptions {
   eNoNetworkAccess = 0, 
   eAppletHostAccess, 
   eUnrestrictedAccess
   };
Constant descriptions

eNoNetworkAccess
The applet cannot access any networks.
eAppletHostAccess
The applet may access only its host server.
eUnrestrictedAccess
The applet has unrestricted access to all networks.
In addition, you must use the JMFileSystemOptions type to specify the security level allowed for applets accessing the local file system.

enum JMFileSystemOptions {
   eNoFSAccess = 0,
   eLocalAppletAccess,
   eAllFSAccess
};
Constant descriptions

eNoFSAccess
Applets have no access to the local file system.
eLocalAppletAccess
Only applets that are stored locally may access the local file system.
eAllFSAccess
All applets have access to the local file system.
See "The AWT Context" for more information about using these security indicator types.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997